llocal  pcip = ngx.shared.pcip
local  class = pcip:get("gclass")
local  hclass = "/home/yan/www/"..class
local str = "<!DOCTYPE html><html><head><meta charset='utf-8'><link href='yy.css' rel='stylesheet'></head><body style='color:DarkViolet; font-size:14px'><table width='100%'><tr><td>"
for i=101,160 do
        if i == 147
        then
                ip = "192.168.11.153"
        else
                ip = "192.168.11."..i
        end
        local name = pcip:get(ip)
        if (name ~= nill and i ~= 153)
        then
        local uname = pcip:get(name)
                if uname ~= nill
                then
--"<a href='df/"..class.."/"..ngx.today().."/"..name.."/' > "..name.."</a>"
                str = str.."<a href='df/"..class.."/"..ngx.today().."/"..name.."/'>"..name..uname.."</a>\r\n<br><br>"
                else
                str = str..name.."\r\n<br><br>"
                end
        else
                local ipname2 = string.sub(ip,13).."     "
                str = str..ipname2.."\r\n<br><br>"
        end
        if(i==112 or i == 124 or i == 136 or i == 148)
                then
                        str = str .. "</td><td>"
                end
end
str = str .. "</td></tr></table></body></html> "
ngx.say(str)

